package com.ce.service;

import com.ce.entity.ShoppingList;
import com.ce.entity.Storage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jyt
 * @since 2022-03-04
 */
public interface StorageService extends IService<Storage> {
    /**
     * 获取库存列表
     *
     * @return 库存list
     */
    public List<Storage> getList();

    /**
     * 库存调整
     *
     * @param storage
     * @return 返回map
     */
    public Map<String, String> updateStorage(Storage storage);

    /**
     * 更新库存
     *
     * @param storage
     * @return map
     */
    public Map<String, String> updateStorageList(Storage storage);

    /**
     * 减少库存
     *
     * @param storage
     * @return map
     */
    public Map<String, String> reduceStorageList(Storage storage);
    /**
     * 查询是否有库存
     *
     * @param storage
     * @return
     */
    public Storage selectByProductNoAndWarehouseNo(Storage storage);

    /**
     * 添加库存
     *
     * @param storage
     * @return map
     */
    public Map<String, String> addStorageList(Storage storage);
}
